package com.cykj.pos.mapper;

import com.cykj.pos.domain.BizManufacturer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 制造商Mapper接口
 *
 * @author Zephyr
 * @date 2025-05-28
 */
public interface BizManufacturerMapper extends BaseMapper<BizManufacturer> {

    List<BizManufacturer> queryManAndModel(BizManufacturer bizManufacturer);

    BizManufacturer getInfoById(@Param("id") Integer id,@Param("mId") Integer mId);

    Integer checkNameId(String name);

    void insertDate(BizManufacturer bizManufacturer);

    Integer selectByName(String name);

    void insertModelData(BizManufacturer bizManufacturer);

    void updateDate(BizManufacturer bizManufacturer);

    void updateModelData(BizManufacturer bizManufacturer);

    Integer selectModelId(BizManufacturer bizManufacturer);

    void insertServiceFee(@Param("model_id")Integer model_id, @Param("str")String str);

    void deleteByMId(Integer mId);
}
